//
//  NewsCell.m
//  HuiWenMovie
//
//  Created by ios on 15/7/21.
//  Copyright (c) 2015年 ios. All rights reserved.
//

#import "NewsCell.h"
#import "UIImageView+WebCache.h"
@implementation NewsCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setReportModel:(NewModel *)reportModel
{
    _reportModel = reportModel;
    [self setNeedsLayout];
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    [_iconImageView sd_setImageWithURL:[NSURL URLWithString:_reportModel.imageName]];
    _title.text = _reportModel.title;
    if (_reportModel.type == 1) {
        [_typeAndSummary setImage:[UIImage imageNamed:@"sctpxw"] forState:UIControlStateNormal];
    }
    [_typeAndSummary setTitle:_reportModel.summary forState:UIControlStateNormal];
    [_typeAndSummary setImageEdgeInsets:UIEdgeInsetsMake(0, -60, 0, 0)];
    [_typeAndSummary setTitleEdgeInsets:UIEdgeInsetsMake(0, -50, 0, 0)];
    
}



- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
